package com.kangtu.demolistener01.listener;

import org.springframework.stereotype.Component;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;

/**
 * @program: demo-weix-pay
 * @description: MyServletRequestListener
 * @author: 亮子说编程
 * @create: 2021-03-08 19:03
 **/
@Component
public class MyServletRequestListener implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("-----> requestDestroyed");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("-----> requestInitialized");
    }
}
